package com.dudy.stragy;

import com.dudy.chain.AbstractProvince;

/**
 * @program: zhuguangDemo
 * @description: ${description}
 * @author: dudy
 * @create: 2018-04-05 21:06
 **/
public class JiangXi implements Province {
    private static String type = "jiangxi";
    @Override
    public void todo(String type) {
        if (type.equals(JiangXi.type)) {
            System.out.println("jiangxi");
        }
    }

    @Override
    public boolean isMyJob(String type) {
        return type.equals(JiangXi.type);
    }
}
